{if $check eq 'true'}
<div id="login">
<h2>{$title}</h2>
<img alt="lock" src="{$base_url}templates/images/lock-icon.png">
<span class="msg">
{foreach from=$msg item=v}
{$v}<br/>
{/foreach}
</span>
<form action="{$query_string_full}" method="post">
<span>Tên đăng nhập:</span><br/>
<input type="text" id="username" name="username" maxlength="30" value="{$username}" tabindex="1">
<br/>
<span>Mật khẩu:</span><br/>
<input type="password" id="password" name="password" maxlength="30" value="{$password}" tabindex="2"><br/>
<input type="submit" name="submit" value="Đăng nhập" tabindex="3">
<input type="reset" name="reset" value="Xóa" tabindex="4">
</form>
</div>
{else}
<span class="msg">
{foreach from=$msg item=v}
{$v}<br/>
{/foreach}
</span>
{/if}